/*
 * @Author: chendeji
 * @Date: 2021-11-16 19:54:05
 * @LastEditTime: 2021-11-16 19:54:15
 * @Description: 
 * @FilePath: \copy_gsy_github_app_flutter\lib\common\model\IssueEvent.dart
 * 联系方式：
 * wx: melody_2009
 * qq: 7815171323 
 */
import 'package:json_annotation/json_annotation.dart';

import 'User.dart';

/**
 * Created by guoshuyu
 * Date: 2018-07-31
 */

part 'IssueEvent.g.dart';

@JsonSerializable()
class IssueEvent {
  int? id;
  User? user;
  @JsonKey(name: "created_at")
  DateTime? createdAt;
  @JsonKey(name: "updated_at")
  DateTime? updatedAt;
  @JsonKey(name: "author_association")
  String? authorAssociation;
  String? body;
  @JsonKey(name: "body_html")
  String? bodyHtml;
  @JsonKey(name: "event")
  String? type;
  @JsonKey(name: "html_url")
  String? htmlUrl;

  IssueEvent(
    this.id,
    this.user,
    this.createdAt,
    this.updatedAt,
    this.authorAssociation,
    this.body,
    this.bodyHtml,
    this.type,
    this.htmlUrl,
  );

  factory IssueEvent.fromJson(Map<String, dynamic> json) =>
      _$IssueEventFromJson(json);

  Map<String, dynamic> toJson() => _$IssueEventToJson(this);
}
